﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace WorldmeServer.Models.材质相关
{
    public class Texture
    {
        /// <summary>
        /// 材质唯一Id
        /// </summary>
        [Key]
        [Comment("材质唯一Id")]
        public string Id { get; set; }
        /// <summary>
        /// 材质名称
        /// </summary>
        [Comment("材质名称")]
        public string Name { get; set; }
        /// <summary>
        /// 材质类型
        /// </summary>
        [Comment("材质类型")]
        public TextureType Type { get; set; }
        /// <summary>
        /// 上传用户
        /// </summary>
        [Comment("上传用户")]
        public string UserId { get; set; }
        /// <summary>
        /// 是否私用
        /// </summary>
        [Comment("是否私有")]
        public bool IsPrivate { get; set; } = false;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }

    public enum TextureType
    {
        Steve,
        Alex,
        Cape
    }
}
